package cn.tedu.lucky.draw.server.service.impl;

import cn.tedu.lucky.draw.server.protocol.po.UserLog;
import cn.tedu.lucky.draw.server.repository.UserLogRepository;
import cn.tedu.lucky.draw.server.service.IUserLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class UserLogServiceImpl implements IUserLogService {

    @Autowired
    private UserLogRepository userLogRepository;

    @Override
    @Async //用于异步进行日志记录
    public void save(UserLog userLog) {
        userLogRepository.save(userLog);
    }
}
